package com.gr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * 
 *
 *
 * @author guoran
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AuctionRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    private LocalDateTime recordTime;

    private Double recordPrice;

    private Integer userId;

    private Integer auctionId;
    @TableField(exist = false)//标注该属性是自定义属性，跟表中字段没有对应关系
    private User user;//封装关联对象
}
